FROM alpine
WORKDIR /app
RUN apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone \
    && apk del tzdata
RUN mkdir -p /app/logs
COPY bin .
RUN chmod a+x /app/docker-entrypoint.sh
ENV HTTP_PORT=0
ENV BINARY_NAME=main
# 需要与环境配置文件里的端口号相同
ENTRYPOINT ["/app/docker-entrypoint.sh"]



